home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / dev / amos / AMOS1097.lzh / AMOSLIST / 000256_amos-request@svcs1.digex.net_Sun Oct 26 11:10:14 1997.msg < prev    next >
Internet Message Format  |  1997-11-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id LAA24436
  3.     for <mcox@access.digex.net>; Sun, 26 Oct 1997 11:10:13 -0500 (EST)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id JAA01736
  6.     for amos-out; Sun, 26 Oct 1997 09:28:03 -0500 (EST)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA01733
  9.     for <amos-list@svcs1.digex.net>; Sun, 26 Oct 1997 09:28:02 -0500 (EST)
  10. Received: from www11-gui.server.virgin.net (www11-gui.server.virgin.net [194.168.54.17])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id JAA14134
  12.     for <amos-list@access.digex.net>; Sun, 26 Oct 1997 09:28:00 -0500 (EST)
  13. Received: from p53-albatross-gui.tch.virgin.net ([194.168.56.53])
  14.           by www11-gui.server.virgin.net (Post.Office MTA v3.1.2
  15.           release (PO203-101c) ID# 0-0U10L2S100) with ESMTP id AAB3268
  16.           for <amos-list@access.digex.net>; Sun, 26 Oct 1997 14:27:58 +0000
  17. From: "Alastair Murray" <malcolm.murray@virgin.net>
  18. Organization: Muzzasoft/Microplanet Games
  19. Date: 17 Oct 120 06:31:11 +0000
  20. Subject: Re: Pattern Match
  21. Message-Id: <5F8A8FAF.MD-0.196.malcolm.murray@virgin.net>
  22. In-Reply-To: <yam7237.2750.1747919112@post8.tele.dk>
  23. To: amos-list@access.digex.net
  24. Mime-Version: 1.0
  25. Content-Type: text/plain; charset=us-ascii
  26. Content-Transfer-Encoding: 7bit
  27. X-Mailer: MicroDot-II/AmigaOS 0.196
  28. Status: O
  29. X-Status: 
  30.  
  31.  >>Anyone have any AMOS code for doing a pattern match on a string?
  32. > >>e.g. *.AMOS or #?.AMOS to see if a string contains .AMOS in it
  33. > >>anywhere.
  34. > >>Saves me writing it myself...
  35. > >A=Instr(<string to check>,<string to search for>)
  36. > THAT's NOT A PATTERN MATCH, but a character match
  37.  
  38. Yes. A few people have misunderstood me I think.
  39. This is what I need.
  40. using: #?amos#?pro :as a pattern would respond
  41. True for "amos pro" or "amos not pro" or "not amos pro" or "not amos
  42. not pro" etc. As long as it has Anything, then the word "amos" then
  43. anything else and then the word "pro" and nothing else.... get it?
  44.  
  45. No-one programmed anything like this?
  46. I know some extension use it (AMCAF) and you can access the Pattern
  47. Match in a library somehow but I'd rather let it work with 1.3 dos as
  48. well.
  49.  
  50. -Murray
  51.  
  52.  
  53. --
  54.  
  55.            \\|//     Alastair Murray
  56.            (o o)       malcolm.murray@virgin.net
  57. |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  58. |         AMINET         |Web-Page (Amiga/Games/AMOS/trek/Music/    |
  59. |     game/role/CHAOS    |                  +more)                  |
  60. |game/jump/Banana Islands|http://freespace.virgin.net/malcolm.murray|
  61. |   game/shoot/Hanger18  |Current Projects: >Chaos 2                |
  62. |    dev/amos/keystate   | >Kill Em All     >Hanger 18 II           |
  63. |    dev/amos/picpack    | >Skool Daze      >The Crow               |
  64. |   game/shoot/traitor   | >Banana Islands                          |
  65. |   game/shoot/extinct   | >The Turtleminator                       |
  66. |     game/jump/blobby   | >Backbone - The Game Creator             |
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68.